﻿using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace NotifyCenter.Sender.ResponseModels; // 建议放在单独的响应模型命名空间

/// <summary>
/// 飞书自定义机器人通用请求体（对齐官方 v3 规范）
/// </summary>
public class FeishuBotRequest
{
    /// <summary>消息类型（text/post 等，参考官方枚举）</summary>
    [JsonProperty("msg_type")]
    public string MsgType { get; set; } = string.Empty;

    /// <summary>消息内容（随 msg_type 变化）</summary>
    [JsonProperty("content")]
    public object? Content { get; set; } = new();

    /// <summary>签名（开启校验时必传）</summary>
    [JsonProperty("sign")]
    public string? Sign { get; set; }

    /// <summary>秒级时间戳（与签名配套）</summary>
    [JsonProperty("timestamp")]
    public long Timestamp { get; set; }

    [JsonProperty("card")]
    public object? Card { get; set; }
}
